//
//  TimerModel.m
//  test内付
//
//  Created by csh on 16/7/19.
//  Copyright © 2016年 陈世豪. All rights reserved.
//

#import "TimerModel.h"

@implementation TimerModel
+(instancetype)fakeModel{
    TimerModel *model=[[TimerModel alloc]init];
    model.status=TimerStatusWillSale;
    //初始化calendar  阳历
    NSCalendar *calendar=[NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
    NSDate *today=[NSDate date];
    //获得与某一date相差value的另一个date
    NSDate *tommorow=[calendar dateByAddingUnit:NSCalendarUnitSecond value:60 toDate:today options:0];
    NSTimeInterval stamp=[tommorow timeIntervalSince1970];
    model.timeStamp=stamp;
    return model;
}
@end
